<link href="<?=STATIC_PATH?>/js/upload/swfupload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"src="<?=STATIC_PATH?>/js/upload/handlers.js"></script>
<script type="text/javascript" src="<?=STATIC_PATH?>/js/upload/swfupload.js"></script>

<div class="listDiv" style="height:85%;">
    <table class="listTab" cellpadding="0" cellspacing="0">
        <thead>
        <tr>
            <td width="10%"><span></span>编号</td>
            <td width="20%"><span></span>图片</td>
            <td width="30%"><span></span>链接</td>
            <td width="20%"><span></span>排序</td>
            <td width="20%">操作&nbsp;&nbsp;<a id="adds" href="/sitemanage/adadd/">[新增广告]</a></td>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($list as $item):?>
        <tr>
            <td><?=$item['id']?>&nbsp;</td>
            <td><span><img src="<?=$item['img']?>" width="60" height="25"> &nbsp;</span></td>
            <td><?=$item['links']?>&nbsp;</td>
            <td><?=$item['sorts']?></td>
            <td align="left">
                <a id="edits" rel="<?=$item['id']?>" href="/sitemanage/adedit/?id=<?=$item['id']?>">编辑</a>
                <a id="drop" rel="<?=$item['id']?>" href="#">删除</a>
            </td>
        </tr>
            <?php endforeach;?>
        </tbody>
    </table>
</div>
<div id="edit_box" class="hide">
    <form action="/basic/areaEdit" method="post" id="area_edit">
        <input type="hidden" name="id" value="0">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="80px">
            <tr>
                <td width="150px" align="right">&nbsp;图片：&nbsp;</td>
                <td><input type="text" name="Name" /></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;区域描述：&nbsp;</td>
                <td><textarea name="Desc" rows="2" cols="25"></textarea></td>
            </tr>
        </table>
    </form>
</div>
<div id="add_box" class="hide">
    <form action="/sitemanage/adadd" method="post" id="ad_add">
        <input name="attr_id" id="attr_id">
        <input type="hidden" name="id" value="0">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="80px">
            <tr>
                <td width="150px" align="right">&nbsp;上传图片：&nbsp;</td>
                <td><span id="spanButtonPlaceholder"></span> </td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;链接地址：&nbsp;</td>
                <td><input type="text" name="links" id="edit_links"></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;排序：&nbsp;</td>
                <td><input type="text" name="sorts" value="255"></td>
            </tr>
        </table>
    </form>
</div>
